function amountTransfer(amount, type) {
	var check_dot = amount.split(".");
	if(check_dot.length > 2 || (check_dot.length == 2 && check_dot[1].length > 2)) {
		$(".deposit-error").val('');
		return;
	}
	//$("#loading").css("display", 'block');
	$.ajax({
	  	type: "GET",
	 	url: baseUrl + "/bank/amountTransfer",
	  	data: {amount:amount, type:type},
	  	success: function(result){
	  		if(result == '-1') {
	  			$(".deposit-error").val('');
	  			return;
	  		}
			var parse = $.parseJSON(result);
			if(parse) {
				$("#you_need_have").val(parse.you_need_have);
				$("#amount_receive").val(parse.coin_receive);
			}
			//$("#loading").css("display", 'none');
  		}
	});
}